
function ProAdapter_Base()
{

}

function proToObj(pro)
{
	if (pro !== undefined && pro !== null)
	{
		for ( var i in pro)
		{
			if (pro[i] !== undefined && pro[i] !== null && i !== "__proto__")
			{
				if (pro[i] instanceof Array)
				{
					for ( var k in pro[i])
					{
						if (pro[i][k] !== undefined && pro[i][k] !== null
								&& pro[i][k]["object_type"] !== undefined
								&& pro[i][k]["object_type"] !== null && i !== "__proto__")
						{
							proToObj(pro[i][k]);
						}
					}
				}
				else if (pro[i]["object_type"] !== undefined
						&& pro[i]["object_type"] !== null)
				{
					proToObj(pro[i]);
				}
			}
		}
		
		if (pro["object_type"] !== undefined && pro["object_type"] !== null)
		{
			pro.__proto__ = eval("new " + pro["object_type"] + "();");
		}
	}

	return pro;
}
